package com.develop.data.loan.option;

import com.develop.data.loan.option.constraint.CodedOption;
import com.develop.data.loan.option.constraint.CommentedOption;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@AllArgsConstructor
public enum LoanRateType implements CodedOption, CommentedOption {

    FIXED_DAILY("01", "固定利率，按日"),
    FIXED_MONTHLY("02", "固定利率，按月"),
    FLOAT_DAILY("11", "浮动利率-按日"),
    FLOAT_WEEKLY("12", "浮动利率-按周"),
    FLOAT_MONTHLY("13", "浮动利率-按月"),
    FLOAT_QUARTERLY("14", "浮动利率-按季"),
    FLOAT_SEMIANNUAL("15", "浮动利率-按半年"),
    FLOAT_ANNUALLY("16", "浮动利率-按年");

    @Getter
    private String code;
    @Getter @Setter
    private String comment;
}
